package site.lanmushan.quiz.api.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import site.lanmushan.common.query.entity.BizEntity;
import com.alibaba.fastjson.JSONObject;

import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.*;
import java.math.BigDecimal;

/**
 * @author $author
 * 测验可选答案
 */
@Data
@ApiModel
@Table(name = "quiz_tb_question_answer")
public class QuizTbQuestionAnswer extends BizEntity {

    @ApiModelProperty(value = "是否删除1是")
    private Long deleted;

    @ApiModelProperty(value = "问题ID")
    private Long fkQuestionId;

    @ApiModelProperty(value = "答案内容")
    private String answerContent;

    @ApiModelProperty(value = "权重")
    private Double weight;

    @ApiModelProperty(value = "答案维度")
    private String answerGroup;
    @ApiModelProperty(value = "正确答案|1:正确,0:错误")
    private Integer answerCorrect;
    @ApiModelProperty(value = "分值|为空时默认使用题目的分数")
    private Double scoreValue;
    @ApiModelProperty(value = "类型|select:选择,input:输入")
    private String answerType;
}
